package com.yidu.hbatsft.dao;

import com.yidu.hbatsft.domain.AtsEmpCoach;
import com.yidu.hbatsft.domain.AtsEmpCoachAndUserVo;
import org.apache.ibatis.annotations.Mapper;
import com.yidu.utils.Page;
import java.util.List;

@Mapper
public interface AtsEmpCoachMapper {

    int deleteByPrimaryKey(Integer coachId);

    int insert(AtsEmpCoach record);

    int insertSelective(AtsEmpCoach record);

    AtsEmpCoach selectByPrimaryKey(Integer coachId);

    int updateByPrimaryKeySelective(AtsEmpCoach record);

    int updateByPrimaryKey(AtsEmpCoach record);

    List findAll();

    /**
     * 查询所有教员名姓名和id
     * @return 结果集
     */
    List<AtsEmpCoach> selAllCoachName();

    /**
     * 根据ID查询教练员
     */
    AtsEmpCoach findById(Integer id);

    /**
     * 穿梭树需要ID
     * @param otherName
     * @return
     */
    AtsEmpCoach selCoachId(String otherName);
    /**
     * 查询全部
     */
    List<AtsEmpCoach> findAllX(String coachName);
    /**
     * 查询页数
     */
    int count();

}